using System;

namespace CastleSample.Exceptions
{
    [Serializable]
    public class VersionConflictException : CastleSampleException
    {
        private int m_NewVersion;

        public int NewVersion
        {
            get { return m_NewVersion; }
            set { m_NewVersion = value; }
        }

        public VersionConflictException(int newVersion)
        {
            m_NewVersion = newVersion;
        }

        public VersionConflictException()
        {
        }

        public VersionConflictException(string message) : base(message)
        {
        }

        public VersionConflictException(string message, Exception innerException) : base(message, innerException)
        {
        }
    }
}